package Entities;

import java.util.Objects;

public class BookTagRefEntity {
    private int id;
    private String refBookId;
    private String refTagTitle;
    private Integer count;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getRefBookId() {
        return refBookId;
    }

    public void setRefBookId(String refBookId) {
        this.refBookId = refBookId;
    }

    public String getRefTagTitle() {
        return refTagTitle;
    }

    public void setRefTagTitle(String refTagTitle) {
        this.refTagTitle = refTagTitle;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BookTagRefEntity entity = (BookTagRefEntity) o;
        return id == entity.id &&
                Objects.equals(refBookId, entity.refBookId) &&
                Objects.equals(refTagTitle, entity.refTagTitle) &&
                Objects.equals(count, entity.count);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, refBookId, refTagTitle, count);
    }
}
